{% extends "base.html" %} {% block title %}Edit Article - Doctor Dashboard{% endblock %} {% block content %}

Edit Article

Update your article content and make improvements

Article Details
{{ form.hidden_tag() }}
{{ form.title.label(class="form-label fw-bold") }} {{ form.title(class="form-control form-control-lg", placeholder="Enter article title...") }} {% if form.title.errors %}
{% for error in form.title.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.category.label(class="form-label fw-bold") }} {{ form.category(class="form-control form-control-lg") }} {% if form.category.errors %}
{% for error in form.category.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.featured_image(class="form-control", id="featured-image-input", onchange="previewImage(this)") }}
Choose a new image to replace the current one.
{% if form.featured_image.errors %}
{% for error in form.featured_image.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.excerpt.label(class="form-label fw-bold") }} {{ form.excerpt(class="form-control", rows="2", placeholder="Provide a brief, catchy summary for the listing page...") }} {% if form.excerpt.errors %}
{% for error in form.excerpt.errors %}
{{ error }}
{% endfor %}
{% endif %}
{% if form.content.errors %}
{% for error in form.content.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.references(class="form-control", rows="3", placeholder="List your sources, studies, or clinical guidelines here...") }}
Citing credible sources builds trust with patients.
{% if form.references.errors %}
{% for error in form.references.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.tags.label(class="form-label fw-bold") }} {{ form.tags(class="form-control", placeholder="e.g., blood pressure, heart health, symptoms") }}

{{ form.meta_title.label(class="form-label") }} {{ form.meta_title(class="form-control", placeholder="Article title for Google results") }}
{{ form.meta_description.label(class="form-label") }} {{ form.meta_description(class="form-control", rows="3", placeholder="The short blurb for Google") }}
{% if blog %}
Current Status
{% if blog.status == 'published' %} Published {% elif blog.status == 'scheduled' %} Scheduled {% else %} {{ blog.status|title }} {% endif %}
Created: {{ blog.created_at.strftime('%b %d, %Y') }}
{% if blog.published_at %}
Published: {{ blog.published_at.strftime('%b %d, %Y') }}
{% endif %}

Moderation Notice

Saving updates will send this article back to the Admin for review, changing its status to Pending.

{% endif %}
Cancel
Writing Tips
Clear Purpose

Define the main message and what readers will learn.

Simple Language

Use clear, jargon-free language for better understanding.

Structure

Use headings, bullet points, and short paragraphs.

Accuracy

Ensure all medical information is accurate and up-to-date.

Guidelines
  • Provide evidence-based medical information
  • Include disclaimers for general advice
  • Encourage readers to consult doctors
  • Avoid specific medical diagnoses
  • Keep content professional and helpful
Article Stats
Characters:0
Words:0
Reading Time:0 min
{% endblock %}